package com.program;

import com.program.controller.MainController;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.layout.AnchorPane;
import javafx.stage.Stage;
import java.io.IOException;

/**
 * @program: AirportSystem
 * @description: 图形界面
 * @author: 19071027
 * @create: 2021-09-10 18:54
 **/
public class Main extends Application {

    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void start(Stage primaryStage) throws IOException{
        Parent root = (AnchorPane)FXMLLoader.load(getClass()
                .getResource("/MainFxml.fxml"));

        primaryStage.setTitle("Airport");
        primaryStage.setScene(new Scene(root));

        MainController.mainController.mainController();

        primaryStage.show();
    }

}
